package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.DestinationTheme;
import cn.wolfcode.luowowo.article.query.DestinationThemeQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * 游记服务
 */
public interface IDestinationThemeService {


    /**
     * 分页查询
     * @param qo
     * @return
     */
    PageInfo query(DestinationThemeQuery qo);


    /**
     * 查单个
     * @param id
     * @return
     */
    DestinationTheme get(Long id);


    /**
     * 添加与更新
     * @param destinationTheme
     */
    void saveOrUpdate(DestinationTheme destinationTheme);

    /**
     * 查询游记
     * @return
     */
    List<DestinationTheme> list();


    List<DestinationTheme> QueryDestinationThemeById(Long themeId);

    List<DestinationTheme> selectByParentId(Long parentId);
}
